void dft2d(int n, int m, int inverse, double *gRe, double *gIm, double *GRe, double *GIm);

